home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 July / EnigmA AMIGA RUN 09 (1996)(G.R. Edizioni)(IT)[!][issue 1996-07 & 08][EARSAN CD VIII].iso / earcd / gui / argue03.lha / Argue03 / examples / example next >
Text File  |  1996-05-14  |  1KB  |  66 lines

  1. ; Interface for use with Argue.
  2. ;
  3. ; ARGUE - A FASCINATING NEW GUI CREATION SYSTEM FOR OS 3.0.
  4. ;
  5. ; For information about Argue write to flavour@aventure.teuto.de
  6.  
  7.  
  8. ; Set maximal failure level to 11
  9.  
  10. FAILAT 11
  11.  
  12.  
  13. ; This is the file to put the filled out template to.
  14.  
  15. SETENV TEMPFILE (put the name here. could be something like t:gui or so)
  16.  
  17.  
  18. ; Fill in the program's template here or create an own one (as for unix-tools
  19. ; like Povray)
  20.  
  21. SETENV TEMPLATE (here put in the template)
  22.  
  23.  
  24. ; Save the actual path
  25.  
  26. SETENV ACTUALPATH "`cd`"
  27.  
  28.  
  29. ; Put the path here where to go when running Argue! This will be used in the
  30. ; file requesters Argue pops up. If no special path shall be used write
  31. ; SETENV PATH $ACTUALPATH.
  32.  
  33. SETENV PATH (add the path here!)
  34.  
  35.  
  36. ; Fill in the command to execute in the PATH directory. You may also add some
  37. ; arguments before the ones that Argue will add behind.
  38.  
  39. SETENV EXECUTE (the command to execute the tool the GUI belongs to.)
  40.  
  41.  
  42. ; Go to the selected path for running Argue
  43.  
  44. CD $PATH
  45.  
  46.  
  47. ; We call Argue here. If you are using unix-styled arguments (-x 4 -w 2) add
  48. ; the word UNIX after the template. If you need non-spaced arguments (-x4 -w2)
  49. ; add the word NOSPACES after the UNIX word. And note the ""s!!!
  50.  
  51. ARGUE >$TEMPFILE "$TEMPLATE"
  52.  
  53.  
  54. ; Check if Argue was interrupted...
  55.  
  56. IF NOT WARN
  57.     $EXECUTE $TEMPFILE
  58. ENDIF
  59.  
  60.  
  61. ; Go back to the actual path
  62.  
  63. CD $ACTUALPATH
  64.  
  65.  
  66.